package com.service;

import com.dao.FamilyDao;
import com.pojo.Account;
import com.pojo.Family;
import com.pojo.Operator;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface OperatorService {
       public  Operator login(Operator operator);

       List<Account> getAllAccount(Integer areaId);

       String selectPoorKind(Integer id);

       Integer selectSum(Integer accountId);

       Integer selectPoorId(String poorKind);

       boolean addAccount(Account account);

       boolean deleteAccount(Integer id);

       boolean updateAccount(Account account);

       List<Family> selectByAccountId(Integer id);

       boolean addFamily(Family family);

       boolean updateFamily(Family family);

       boolean deleteFamily(Integer id);
}
